﻿using UnityEngine;
using System.Collections;

public class s_bullet : MonoBehaviour {

    public GameObject effectPrefab;

	// Use this for initialization
	void Start () {
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public void OnTriggerEnter(Collider collider)
    {
        GameObject.Instantiate(effectPrefab,transform.position,transform.rotation);

        GameObject.Destroy(this.gameObject);
    }
}
